﻿package com.lfd.controller;


import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.lfd.service.ICategoryService;
import com.lfd.util.Result;
import com.lfd.vo.CategoryVo;

@Controller
@RequestMapping("/category")
public class CategoryController {

	private final Logger logger = Logger.getLogger(CategoryController.class);
	@Autowired
	private ICategoryService iCategoryService;

	@ResponseBody
	@RequestMapping("/selectallCategory")
	public Result selectAll(CategoryVo category) {
		List<List<CategoryVo>> list = iCategoryService.selectCategoryVos(category);

		return new Result("0", "成功", list.size(), list);
	}

}
